

/**
 * @author Carlos
 * @version 1.0
 * @created 09-oct-2013 05:23:41 p.m.
 */
using System.Xml;
using Imaginarium.XML;
using Imaginarium.Factorys;
namespace Imaginarium.jobs.skills
{
    public class SkillRequirement
    {

        public int lvlSkill { get; set; }
        public Skill skillReq { get; set; }
        public SkillRequirement()
        {

        }
        public SkillRequirement(XmlElement element)
        {
            this.lvlSkill = XmlHelper.getIntByTagname(element, XmlParameters.SKILL_LEVEL);
            skillReq = SkillFactory.getSkillById(XmlHelper.getIntByTagname(element, XmlParameters.SKILL_ID));
        }

        public override string ToString()
        {
            string ans = "";
            ans += "lvlSkill: " + lvlSkill + "\n";
            ans += "skillReq: " + skillReq.name + "\n";
            return ans;
        }
    }
}